package com.sinovatech.ologger.util;

import java.util.ResourceBundle;

public class ResourceHelperUtil {

	private static ResourceBundle rb = null;

	public static String findLucenePath() {
		if (rb == null) {
			rb = ResourceBundle.getBundle("/conf/parameter");
		}
		return rb.getString("lucene_path");
	}

	public static String getFileUploadPath() {
		if (rb == null) {
			rb = ResourceBundle.getBundle("/conf/parameter");
		}
		return rb.getString("web_attach");
	}

	public static String findXFireURL() {
		if (rb == null) {
			rb = ResourceBundle.getBundle("/conf/parameter");
		}
		return rb.getString("xfire.url");
	}

	public static String findPageSize() {
		if (rb == null) {
			rb = ResourceBundle.getBundle("/conf/parameter");
		}
		return rb.getString("pageSize");
	}

	public static String findFileSaveDir() {
		if (rb == null) {
			rb = ResourceBundle.getBundle("/conf/parameter");
		}
		return rb.getString("news_path");
	}

	public static String findWebPath() {
		if (rb == null) {
			rb = ResourceBundle.getBundle("/conf/parameter");
		}
		return rb.getString("web_path");
	}

}
